# get the file list
require "dbm"

begin
  files = Dir.entries "./Jan_6"
  # file_list = File.new("01_file_list.txt",'w')
  file_list = DBM.open("db_file_list")
  

  counter = 0;
  for file_name in files
    if file_name != '.' and file_name != '..'
      file_list[counter.to_s] = file_name
      puts counter
      counter = counter + 1
    end
  end
  file_list.close
rescue Exception => e
  file_list.close
end